import axios from '@/utils/request';
//客户订单
export function CustomerOrderApi(params) {
  return axios.get({
    url: '/api/Center/getDdList',
    data: params
  }).then((res) => {
    return res
  })
}
//客户订单明细
export function getDdDetailApi(params) {
  return axios.get({
    url: '/api/Center/getDdDetail',
    data: params
  }).then((res) => {
    return res
  })
}
//订单审核
export function checkPaperApi(params) {
  return axios.post({
    url: '/api/Center/checkPaper',
    data: params
  }).then((res) => {
    return res
  })
}
//客户购物车
export function getShopcartApi(params) {
  return axios.get({
    url: '/api/Center/getShopcart',
    data: params
  }).then((res) => {
    return res
  })
}
//客户购物车明细
export function getShopcartDetailApi(params) {
  return axios.get({
    url: '/api/Center/getShopcartDetail',
    data: params
  }).then((res) => {
    return res
  })
}
//清空客户购物车
export function DelCartApi(params) {
  return axios.post({
    url: '/api/Center/DelCart',
    data: params
  }).then((res) => {
    return res
  })
}
//删除客户购物车明细
export function DelCartDetailApi(params) {
  return axios.post({
    url: '/api/Center/DelCartDetail',
    data: params
  }).then((res) => {
    return res
  })
}
//支付流水
export function getPayListApi(params) {
  return axios.get({
    url: '/api/Center/getPayList',
    data: params
  }).then((res) => {
    return res
  })
}
//订单概述汇总
export function OrderSummaryApi(params) {
  return axios.get({
    url: '/api/Report/OrderSummaryData',
    data: params
  }).then((res) => {
    return res
  })
}
//月统计
export function OrderPriceSummaryDataApi(params) {
  return axios.get({
    url: '/api/Report/OrderPriceSummaryData',
    data: params
  }).then((res) => {
    return res
  })
}
